﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Wfxin.Entity
{
    public class BasicEntity
    {
        /// <summary>
        /// 编号
        /// </summary> 
        public long Id { get; set; }

        private int status = 0;

        /// <summary>
        /// 状态
        /// </summary>
        public int Status
        {
            get { return status; }
            set { status = value; }
        }
        /// <summary>
        /// 状态名称
        /// </summary>
        public string StatusName
        {
            get
            {
                if (Status == 0) return "启用";
                else if (Status == 1) return "禁用";
                else if (Status == 2) return "标记删除";
                return "启用";
            }
        }

        /// <summary>
        /// 描述/备注
        /// </summary>

        public string Description { get; set; }


        private DateTime createdatetime = DateTime.Now;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDateTime
        {
            get { return createdatetime; }
            set { createdatetime = value; }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreatePerson { get; set; }

        private DateTime updateDateTime = DateTime.Now;
        /// <summary>
        /// 修改/日期时间
        /// </summary>
        public DateTime UpdateDateTime
        {
            get
            {
                return updateDateTime;
            }
            set
            {
                updateDateTime = value;
            }
        }

        /// <summary>
        /// 修改/更新人
        /// </summary>
        public string UpdatePerson { get; set; }
    }
}
